<template>
  <div id="app">
    <!-- 路由出口 -->
    <keep-alive exclude="ArticleIndex">
    <router-view />
    </keep-alive>
    <div>{{cont}}</div>
    <button @click="kkk">点击</button>
    <div>{{$store.state.atr.cont}}</div>
  </div>
</template>

<script>
import { mapState, mapMutations } from 'vuex'
export default {
  name: 'App',
  computed: {
    ...mapState('atr', ['cont'])
  },
  methods: {
    ...mapMutations('atr', ['add']),
    kkk () {
      // this.$store.commit('atr/add', 999)
      this.add(7979)
    }
  }
}
</script>

<style lang="less"></style>
